/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfocompany.entity;

import com.lczyfz.campusinfo.modules.sys.entity.User;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 公司权限Entity
 * @author zms
 * @version 2018-04-18
 */
public class CompanySearch extends DataEntity<CompanySearch> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 用户编号
	private String companyId;		// 公司编号
	private String linkUserid;		// 编号
	private String username;		// 学生姓名
	private String stuid;		// 学号
	private String schoolid;		// 学校编
	private String schoolName;
	private String coid;		// 编号
	private String companyName;		// 公司名称
	private String corporation;		// 法人
	private String avaRemainder;		// 可用余额
	private String reqRemainder;		// 已申请余额
	private String curRemainder;		// 当前余额
	private String account;		// 账户
	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}
	public CompanySearch() {
		super();
	}

	public CompanySearch(String id){
		super(id);
	}

	@NotNull(message="用户编号不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=1, max=64, message="公司编号长度必须介于 1 和 64 之间")
	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	
	@Length(min=1, max=64, message="编号长度必须介于 1 和 64 之间")
	public String getLinkUserid() {
		return linkUserid;
	}

	public void setLinkUserid(String linkUserid) {
		this.linkUserid = linkUserid;
	}
	
	@Length(min=0, max=100, message="学生姓名长度必须介于 0 和 100 之间")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=0, max=64, message="学号长度必须介于 0 和 64 之间")
	public String getStuid() {
		return stuid;
	}

	public void setStuid(String stuid) {
		this.stuid = stuid;
	}
	
	@Length(min=0, max=64, message="学校编码长度必须介于 0 和 64 之间")
	public String getSchoolid() {
		return schoolid;
	}

	public void setSchoolid(String schoolid) {
		this.schoolid = schoolid;
	}
	
	@Length(min=1, max=64, message="编号长度必须介于 1 和 64 之间")
	public String getCoid() {
		return coid;
	}

	public void setCoid(String coid) {
		this.coid = coid;
	}
	
	@Length(min=1, max=64, message="公司名称长度必须介于 1 和 64 之间")
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	@Length(min=1, max=64, message="法人长度必须介于 1 和 64 之间")
	public String getCorporation() {
		return corporation;
	}

	public void setCorporation(String corporation) {
		this.corporation = corporation;
	}
	
	@Length(min=1, max=64, message="可用余额长度必须介于 1 和 64 之间")
	public String getAvaRemainder() {
		return avaRemainder;
	}

	public void setAvaRemainder(String avaRemainder) {
		this.avaRemainder = avaRemainder;
	}
	
	@Length(min=1, max=64, message="已申请余额长度必须介于 1 和 64 之间")
	public String getReqRemainder() {
		return reqRemainder;
	}

	public void setReqRemainder(String reqRemainder) {
		this.reqRemainder = reqRemainder;
	}
	
	@Length(min=1, max=64, message="当前余额长度必须介于 1 和 64 之间")
	public String getCurRemainder() {
		return curRemainder;
	}

	public void setCurRemainder(String curRemainder) {
		this.curRemainder = curRemainder;
	}
	
	@Length(min=1, max=64, message="账户长度必须介于 1 和 64 之间")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	
}